//
//  Seller.m
//  RBIOSBase
//
//  Created by ren on 06/12/2017.
//  Copyright © 2017 bryan. All rights reserved.
//

#import "Seller.h"
#import "TicketsCenter.h"

@implementation Seller {
	NSLock *lock;
}

- (instancetype)initWith:(TicketsCenter *)tc sname:(NSString *)sname
{
	if (self = [super init]) {
		self.ticketsCenter = tc;
		self.name = sname;
	}
	return self;
}

- (void)startSell
{
	for (int i = 0; i < 5; i++) {
//		@synchronized(self.ticketsCenter) {
			[self.ticketsCenter sell:self];
//		}
	}
}

@end
